package com.hfy.model.Es;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class PostES {
    private Integer id;
    private String avatar;
    private String title;
    private String nickname;
    private String account;
    private Integer topicId;
    private Boolean isNameless;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy年MM月dd日 HH:mm")
    private LocalDateTime createTime;
    private Boolean isDie;
    private String contentText;
    private Float weight;
    private Integer wordNum;
    private Integer likeNum;
    private Integer commentNum;
    private Integer collectNum;
    private Integer shareNum;
    private Integer viewNum;
}
